package com.ty.user.starter.entity.vo;

import com.ty.user.starter.enums.LogTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class LogVo implements Serializable {
    private static final long serialVersionUID = 4366606739073823700L;

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("创建用户编码")
    private Long createUserId;

    @ApiModelProperty("创建用户名称")
    private String createUserName;

    @ApiModelProperty("创建时间")
    private LocalDateTime createDate;

    @ApiModelProperty("请求URI")
    private String requestUri;

    @ApiModelProperty("请求参数")
    private String requestParams;

    @ApiModelProperty("请求IP")
    private String requestIp;

    @ApiModelProperty("请求服务器地址")
    private String serverAddress;

    @ApiModelProperty("开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty("执行时间")
    private Long executeTime;

    @ApiModelProperty("用户代理")
    private String userAgent;

    @ApiModelProperty("操作系统")
    private String deviceName;

    @ApiModelProperty("浏览器名称")
    private String browserName;

    @ApiModelProperty("操作模块")
    private String module;

    @ApiModelProperty("操作类型")
    private LogTypeEnum typeEnum;

    @ApiModelProperty("操作说明")
    private String description;
}
